from django.urls import path
from . import views
app_name = 'api'

urlpatterns = [
    path('', views.index, name='index'),
    path('stu_login', views.stu_login, name='stu_login'),
    path('tea_login', views.tea_login, name='tea_login'),
    path('stu_register', views.student_register, name='stu_register'),
    path('sen_email_captcha', views.sen_email_captcha, name='sen_email_captcha'),       # 发送验证码
    path('stu_change', views.stu_change, name='stu_change'),
    path('my_course', views.my_course, name='my_course'),
    path('stulogout', views.stulogout, name='stulogout'),
    path('tea_register', views.ted_register, name='tea_register'),
    path('tea_change', views.tea_change, name='tea_change'),
    path('add_class', views.add_class, name='add_class'),
    path('add_course', views.add_course, name='add_course'),
    path('add_textbook', views.add_textbook, name='add_textbook'),
    path('add_students', views.add_students, name='add_students'),
    path('add_teach', views.add_teach, name='add_teach'),
    path('detail/<int:id>', views.detail, name='detail'),
    path('search', views.search, name='search')


]